{% extends 'my_webs/base.html' %}
{% block header %}
    <h1>我的所有主题</h1>
{% endblock header %}
{% block content %}
    <ul>
        {% for topic in topics %}
            <li>
               <h3>
                    <a href="{% url 'my_webs:topic' topic.id %}">{{ topic }}</a>
               </h3>
            </li>
        {% empty %}
            <li>No topics have been added yet</li>
        {% endfor %}
    </ul>
    <h3>
        <a href="{% url 'my_webs:new_topic'%}">Add a new topic:</a>
    </h3>
{% endblock content %}